// 工厂安全态势简介
import request from '@/utils/request'

// 查询安全态势列表
export function safetyList() {
  return request({
    url: '/base/company/list',
    method: 'get',
  })
}

// 修改安全态势
export function updateSafety(data) {
  return request({
    url: '/base/company',
    method: 'put',
    data: data
  })
}

export function getInfo(id) {
  return request({
    url: '/base/company/info/'+id,
    method: 'get',
  })
}

export function addSafety(data) {
  return request({
    url: '/base/company',
    method: 'post',
    data: data
  })
}